package com.hllxd.hism.star.basic.service.service;

import com.hllxd.hism.star.basic.service.dao.mapper.mis.WorkOrderMapper;
import com.hllxd.hism.star.basic.service.model.WorkOrderEntity;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * author: xiyong.lxy
 * date: 2020-10-12 16:51
 */
@Slf4j
@Service("workOrderService")
public class WorkOrderServiceImpl implements WorkOrderService {


    @Autowired
    private WorkOrderMapper workOrderMapper;

    @Override public Long count(String userID) {
        return workOrderMapper.countWorkOrder(userID);
    }

    @Override public List<WorkOrderEntity> list(String userID) {
        return workOrderMapper.listWorkOrder(userID);
    }

    @Override public WorkOrderEntity detail(String workOrderID) {
        return workOrderMapper.detailWorkOrder(workOrderID);
    }
}
